﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using ZFB.Common;
using ZFB.DTO;

namespace ZFB.IServices
{
    public interface IIdNameServices
    {
        /// <summary>
        /// 新增类别名字
        /// </summary>
        /// <param name="typeName"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        Task<ApiResult> AddNewAsync(IdNameEnum typeName, string name);
        /// <summary>
        /// 根据id查询
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult> GetByIdAsync(long id);
        /// <summary>
        /// 获取类别下的IdName
        /// </summary>
        /// <param name="typeName"></param>
        /// <returns></returns>
        Task<ApiResult> GetAllAsync(IdNameEnum typeName);
    }
}
